/**
 * 
 */
package org.mhz.sit.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author Mahan
 *
 * Speaker Order
 */
@Entity
@Table(name = "speaker_order_t")
@SuppressWarnings("serial")
public class SpeakerOrder extends BaseSpeaker implements Serializable
{
    @Id
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    @Column(name = "id") 
    private Integer mId;
    
    @Column(name = "speaker_id")    
    private Integer mSpeakerId;
    
    /**
     * Constructor
     */
    public SpeakerOrder()
    {
        super();
    }

    /**
     * @param aSpeakerId - The speaker id
     * @param aName - The name
     */
    public SpeakerOrder(final Integer aSpeakerId, 
                        final String aName)
    {
        super(aName);
        mSpeakerId = aSpeakerId;        
    }
    
    /**
     * @return Returns the id.
     */
    public Integer getId()
    {
        return mId;
    }

    /**
     * @param aId The id to set.
     */
    public void setId(final Integer aId)
    {
        mId = aId;
    }

    /**
     * @return Returns the speakerId.
     */
    public Integer getSpeakerId()
    {
        return mSpeakerId;
    }

    /**
     * @param aSpeakerId The speakerId to set.
     */
    public void setSpeakerId(final Integer aSpeakerId)
    {
        mSpeakerId = aSpeakerId;
    }

    /* (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString()
    {
        return getName();
    }      
}
